package homework.day02;

import java.io.Serializable;

public class User implements Serializable {
    private String name = "";
    private int age = 0;
    private String pwd = "";
    private String nick = "";

    public User(){}

    public User(String name, int age, String pwd, String nick) {
        this.name = name;
        this.age = age;
        this.pwd = pwd;
        this.nick = nick;
    }

    @Override
    public String toString() {
        return "user{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", pwd='" + pwd + '\'' +
                ", nick='" + nick + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }
}
